// 题型

const router = require("koa-router")()

const { questionTypeApi } = require("../../../controller/question/questiontype")

const { check } = require("../../../middleware/routercheck")

router.get("/questiontype/:id", check("getquestiontype"), questionTypeApi)
router.get("/questiontype", check("getquestiontype"), questionTypeApi)
router.post("/questiontype", check("createquestiontype"), questionTypeApi)
router.put("/questiontype/:id", check("editquestiontype"), questionTypeApi)
router.delete("/questiontype/:id", check("removequestiontype"), questionTypeApi)

module.exports = router